﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FundRaising.BLL;
using FundRaising.DAL;

namespace FundRaising.GUI.Extensions
{
    public partial class RequestEditing : System.Web.UI.Page
    {

        RequestBLL BLL = new RequestBLL();
        DAL._FR_DS.RequestDataTable table = new _FR_DS.RequestDataTable();

        protected void Page_Load(object sender, EventArgs e)
        {

            table = BLL.GetRequestByKey();
            FundLabel.Text = Convert.ToString(table[0][3]);
            AssoLabel.Text = Convert.ToString(table[0][1]);
            DomainLabel.Text = Convert.ToString(table[0][2]);
            RequestKey12.Text = Convert.ToString(table[0][11]);
        }

        protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
        {
            
            RegisterStartupScript("load", "<script type=\"text/javascript\">\n" + "self.close();\n" + "<" + "/script>");
        }
    }
}
